/* 全局样式 */
:root {
    --primary-color: #007AFF;
    --text-color: #1D1D1F;
    --background-color: #F5F5F7;
    --border-radius: 12px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* 顶部标题区 */
.header {
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(to bottom, #fff, var(--background-color));
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1E3791 0%, #2948B1 40%, #3153C6 55%, #385EDA 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    color: #6E6E73;
}

/* 主容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 上传区域 */
.upload-section {
    margin: 32px 0;
}

.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
    border: 2px dashed #E5E5E5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #F5F5F7;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.upload-hint {
    color: #6E6E73;
    margin-top: 8px;
    font-size: 14px;
}

.file-input {
    display: none;
}

/* 压缩设置区 */
.compression-settings {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #E5E5E5;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 预览区域 */
.preview-section {
    margin: 32px 0;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.preview-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-box h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.image-container {
    width: 100%;
    min-height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #F5F5F7;
    margin-bottom: 16px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-info {
    color: #6E6E73;
    font-size: 14px;
}

/* 下载按钮区 */
.download-section {
    text-align: center;
    margin: 32px 0;
}

.download-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 32px;
    }
} 